import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'antd';

class Btn extends Component {
    count = () => {
        this.props.dispatch({type:'abc'})
    };
    render() {
        return (
            <Button type="primary" onClick={this.count}>Primary</Button>
        );
    }
}

var BtnDispatch = connect()(Btn);

export default BtnDispatch;